package com.zeus.core.report;

import com.zeus.common.enums.ZeusEventTypeEnum;
import com.zeus.common.utils.HashUtils;

/**
 * 错误上报工具
 *
 * @author f1ybear_wang  2022/2/25 10:42 上午
 */
public class ZeusReportErrorClient extends AbstractSimpleZeusReportClient {

    public ZeusReportErrorClient(String message) {
        super();
        this.message = message;
    }

    @Override
    public ZeusEventTypeEnum eventType() {
        return ZeusEventTypeEnum.ERROR_EVENT;
    }

    @Override
    public String uniqueCode() {
        return String.valueOf(HashUtils.bkdrHash(ZeusEventTypeEnum.ERROR_EVENT.getCode() + message));
    }
}
